package com.neudu.glsb.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.neudu.glsb.dto.EmployeeAttendanceVO;
import com.neudu.glsb.mapper.EmployeeAttendanceMapper;
import com.neudu.glsb.pojo.EmployeeAttendance;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
* @author Lenovo
* @description 针对表【employee_attendance(员工考勤信息)】的数据库操作Service
* @createDate 2025-04-16 22:28:32
*/
public interface EmployeeAttendanceService extends IService<EmployeeAttendance> {

    void addCheckInRecord(EmployeeAttendance attendance);
    int getLateCountByEmployeeId(Integer employeeId);
    // 检查当天是否已签到
    boolean isTodaySigned(Integer employeeId);

    // 获取历史签到记录
    List<EmployeeAttendance> getHistorySign(Integer employeeId);
    IPage<EmployeeAttendanceVO> getAllAttendance(int pageNum, int pageSize);
}